<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/20
 * Time: 16:02
 */

namespace Admin\Model;

use Think\Model;

/**
 * Class BannerModel
 * @package Admin\Model
 * 轮播图管理
 */
class BannerModel extends Model
{
     protected  $pk='id';
    protected  $tableName='banner';
    public function store($data){
//        dd($data);die;
        $action=isset($data['id'])?'save':'add';
        return $this->$action($data);
    }

}